<?php if (empty($post_list)): ?>
<div class="alert">
	<button type="button" class="close" data-dismiss="alert">&times;</button>
	<strong>啊哦！</strong>还没有发布内容呢！
</div>
<?php else: ?>
<?php foreach ($post_list as $post): ?>
<div class="well">
	<div>标题：<a href="<?=site_url("post/{$post['post_id']}.html")?>"><?=htmlspecialchars($post['title'])?>，这正常吗？</a></div>
	<div>回复数：<?=$post['comment_count']?></div>
	<?php if ($post['is_anonymous'] == 1): ?>
	<div>由匿名用户发布在 <a href="<?=site_url("category/{$post['category_id']}_1.html")?>"><?=$post['category_name']?></a> </div>
	<?php else: ?>
	<div>由 <a href="<?=site_url("user/{$post['user_id']}")?>"><?=$post['user_name']?></a> 发布在 <a href="<?=site_url("category/{$post['category_id']}_1.html")?>"><?=$post['category_name']?></a> </div>
	<?php endif; ?>
	<div>正常：<?=sprintf("%.2f%%", calc_rate($post['c1_count'], $post['c2_count']) * 100)?></div>
	<?php if (date('Y-m-d', strtotime($post['create_time'])) == date('Y-m-d') || $post['vote_count'] == 0): ?>
	<span class="label label-info">新！</span>
	<?php endif; ?>
</div>
<?php endforeach; ?>
<?php endif; ?>